# -*- coding: utf-8 -*-
"""
Created on Thu Jul 24 16:37:17 2025

@author: User
"""

# 计算数列 (1 + 1/n)^n 的前10项

import math

# 打印表头
print("n\t(1 + 1/n)^n")

# 计算并打印每一项
for n in range(1, 11):
    an = (1 + 1/n) ** n
    print(f"{n}\t{an:.5f}")
    
    